package com.tuanzi.loan.business.entity.family;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import lombok.Data;

@Data
@Entity
@Table(name = "LOAN_API_ORDER")
public class LoanApiOrder implements Serializable {

	private static final long serialVersionUID = -2770924796561681028L;

	@Id
	@Column(name = "id")
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id;

	@Column(name = "userid")
	private Long userId;

	@Column(name = "mobnum")
	private String mobnum;

	@Column(name = "idcard")
	private String idCard;

	@Column(name = "petname")
	private String petname;

	@Column(name = "amount")
	private Integer amount;

	@Column(name = "type")
	private Integer type;

	@Column(name = "status")
	private Integer status;

	@Column(name = "peroid")
	private String peroid;

	@Column(name = "source_id")
	private String sourceId;

	@Column(name = "loan_amount")
	private Double loanAmount;

	@Column(name = "loan_time")
	@Temporal(TemporalType.TIMESTAMP)
	private Date loanTime;

	@Column(name = "settle_amount")
	private Double settleAmount;

	@Column(name = "transaction_id")
	private String transactionId;

	@Column(name = "transaction_time")
	private Date transactionTime;

	@Column(name = "authorize")
	private Integer authorize;

	@Column(name = "auth_time")
	private Date authTime;

	@Column(name = "source_url")
	private String sourceUrl;

	@Column(name = "borrower_id")
	private String borrowerId;

	@Column(name = "loan_app_id")
	private String loanAppId;

	@Column(name = "phoneid")
	private String phoneId;

	@Column(name = "platform")
	private String platform;

	@Column(name = "product_id")
	private String productId;

	@Column(name = "channel")
	private Integer channel;

	@Column(name = "new_activity_id")
	private String newActivityId;

	@Column(name = "new_activity_type")
	private String newActivityType;

	@Column(name = "environment")
	private String environment;

	@Column(name = "page")
	private String page;

	@Column(name = "ck_module")
	private String ckModule;

	@Column(name = "position")
	private String position;

	@Column(name = "order_type")
	private String orderType;

	@Column(name = "user_type")
	private String userType;

	@Column(name = "access_type")
	private String accessType;

	@Column(name = "ctime")
	@Temporal(TemporalType.TIMESTAMP)
	private Date ctime;

	@Column(name = "memo")
	private String memo;
}